
package com.avocado.base.dto.organization;


import lombok.Data;


import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
public class OrganizationDto {


    @NotBlank(message = "操作失败,名称不能为空!")
	@NotNull(message ="操作失败,名称不能为空!")
	private String name;

	@NotNull(message ="操作失败,父节点不能为空!")
	private Long parentId;

	@NotNull(message ="操作失败,排序不能为空!")
	@Min(value = 1L,message = "排序最小不能小于1")
	@Max(value = Integer.MAX_VALUE,message = "排序最大不不能大于"+Integer.MAX_VALUE)
	private Integer sortOrder;

	private String category;

	private String address;

	private String telephone;

	private String email;

	private String contactPerson;


}
